package com.loren.demo19.controller;

import com.loren.demo19.service.SeckillService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@AllArgsConstructor
public class SeckillController {

    private final SeckillService seckillService;

    @GetMapping("/seckill")
    public String seckill() {
        return this.seckillService.seckill("MaoTai", UUID.randomUUID().toString());
    }
}
